//
// Created by Administrator on 2021/10/14.
//

#include "Axies.h"

Axies::Axies() : size(1.0f){
}

Axies::Axies(float _size) {
    this -> size = _size;
}


void Axies::setUpAttribute() {
    vertex = {
            0, 0, 0,    size, 0, 0,
            0, 0, 0,    0, size, 0,
            0, 0, 0,    0, 0, size
    };

    color = {
            1, 0, 0, 1,    1, 0, 0, 1,
            0, 1, 0, 1,    0, 1, 0, 1,
            0, 0, 1, 1,    0, 0, 1, 1
    };

    setDrawMode(DrawMode::M_LINE_LOOP);
}
